var events = {
    init: {
        buttons: function () {

            /*
            jQuery(document).on('click', '.ball', function () {
                fw.view.general.markAllAround(jQuery(this));
            });
            */

            $(document).on("click", '#home_container', function (event) {

                //jQuery('#home_container').append('<div class="ball ' + fw.model.settings.balls.types[rand(0, 3)] + ' fireball" style="top:980px; left:50%;"></div>');
                //console.log("pageX: " + event.pageX + ", pageY: " + event.pageY);
                animation($('.fireball'), {
                    'left': event.pageX - 35,
                    'top': event.pageY - 35
                }, 300, function () {
                    fw.view.general.markAllAround(jQuery('.fireball'));
                    $('.fireball').removeClass('fireball');
                    $('.nextball').addClass('fireball');
                    $('.nextball').removeClass('.nextball');
                    $('.fireball').css('margin-left', '0px');
                    jQuery('#home_container').append('<div class="ball ' + fw.model.settings.balls.types[rand(0, 3)] + ' nextball" style="margin-left:80px; top:955px;left:47%;"></div>');

                });
            });


        }
    }
};